package models

// 基本信息
type BaseInfo struct {
	OrderType string `json:"orderType"`
	PurchaserID string `json:"purchaserId"`
	ServiceType string `json:"serviceType"`
}

type OrdinaryProduct struct {
	ProductID        int    `json:"productId"`
	ProductVersionID int    `json:"productVersionId"`
	StandardPrice    string `json:"standardPrice"`
	MinimumPrice     string `json:"minimumPrice"`
	SellingCount     int    `json:"sellingCount"`
	SellingAmount    string `json:"sellingAmount"`
}

// 产品包信息
type ProductInfo struct {
	OrdinaryProductList []OrdinaryProduct `json:"ordinaryProductList"`
	ReductionReason string `json:"reductionReason"`
}

// 开票信息
type InvoiceInfo struct {
	InvoiceType      string `json:"invoiceType"`
	InvoiceTitleType string `json:"invoiceTitleType"`
	Title            string `json:"title"`
	TaxNo            string `json:"taxNo"`
	Address          string `json:"address"`
	Phone            string `json:"phone"`
	BankName         string `json:"bankName"`
	BankAccount      string `json:"bankAccount"`
	Remark           string `json:"remark"`
}

// 交付信息
type DeliveryInfo struct {
	DeliveryType   string `json:"deliveryType"`
	DeliveryRemark string `json:"deliveryRemark"`
	ReceiverName   string `json:"receiverName"`
	ReceiverMobile string `json:"receiverMobile"`
	AddressDetail  string `json:"addressDetail"`
	LocationCode   string `json:"locationCode"`
}

// 联系信息
type ContactInfo struct {
	ContactName string `json:"contactName"`
	Gender      string `json:"gender"`
	Mobile      string `json:"mobile"`
}

// 	订单备注
type OrderRemark struct {
	SignerID     string `json:"signerId"`
	Remark       string `json:"remark"`
	OperatorType string `json:"operatorType"`
	OperatorID   string `json:"operatorId"`
	SalesChannel  string `json:"salesChannel"`
	TerminalType string `json:"terminalType"`
}

type RemittanceInfo struct {
	RemittanceRecordID string `json:"remittanceRecordId"`
	RelateAmount       string `json:"relateAmount"`
}

// 支付信息
type PayInfo struct {
	PaymentWay         string `json:"paymentWay"`
	RemittanceInfoList []RemittanceInfo `json:"remittanceInfoList"`
}

// 预付费
type PayOrder struct {
	BaseInfo          `json:"baseInfo"`
	ProductInfo       `json:"productInfo"`
	InvoiceBeforePaid string `json:"invoiceBeforePaid"`
	InvoiceInfo       `json:"invoiceInfo"`
	DeliveryInfo      `json:"deliveryInfo"`
	ContactInfo       `json:"contactInfo"`
	OrderRemark       `json:"orderRemark"`
	PayInfo           `json:"payInfo"`
}

// 后付费
type NotPayOrder struct {
	BaseInfo `json:"baseInfo"`
	ProductInfo `json:"productInfo"`
	ContactInfo `json:"contactInfo"`
	OrderRemark `json:"orderRemark"`
}


